<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<title>计分插件</title>
<div id="app">
	<!-- <div>0分</div> -->
	<div>{{score}}分</div>
	<div>分数条</div>
	<!-- <button>点击我</button> -->
	<!-- <button @click="add()">{{name}}</button> -->
	<button @click="score+=100000000000000000000">{{name}}</button>
	<button @click="score+=3">{{name}}</button>
</div>
</head>
<body>
<script>
	new Vue({
		el:"#app",
		data:{
			name:"张三",
			score:0
		},
		methods:{
			add:function(){
					//分数加多少
				this.score+=3
			}
		}
	})
</script>
</body>
</html>
